package com.example.nongye.http.model;


import com.hjq.http.listener.HttpCallbackProxy;

/**
 * 扩展 com.hjq.http.listener.HttpCallback
 * 增加是否显示loading
 *
 * @author Derek.Kidd
 * @version V1.0.0
 * @date 2022/3/6 12:58
 */
@SuppressWarnings({"rawtypes", "unchecked"})
public class HttpCallbackEx<T> extends HttpCallbackProxy<T> {

    //是否显示loading
    private boolean mShowLoading;

    private final OnHttpListenerEx mListenerEx;

    public HttpCallbackEx(OnHttpListenerEx listener) {
        this(listener, true);
    }

    public HttpCallbackEx(OnHttpListenerEx listener, boolean showLoading) {
        super(listener);
        this.mListenerEx = listener;
        this.mShowLoading = showLoading;
    }



}
